Check if multiple variables have the same valueΒΆ

Check if multiple variables have the same value.
x = 20
y = 20
z = 20

if x == y == z == 20:
    print("All variables have same value!")

Output:

All variables have same value!